import { defineConfig } from '@vben/vite-config';

export default defineConfig(async () => {
  return {
    vite: {
      server: {
        proxy: {
          '/api/ab/': {
            target: 'http://106.52.199.93:5000',
            changeOrigin: true,
            rewrite: (path) => path.replace(/^\/api\/ab\//, '/api/ab/'),
          },
        },
      },
    },
  };
});
